package it.polimi.sartori_daniello_picca.meteocal.entity;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.OneToOne;

/**
 *
 * @author Ale
 */
public class Calendar implements Serializable {
    
@Id 
@Column(name="username")
@OneToOne
private Users username;

@Column(name="privacy")
private Boolean privacy;

 public Calendar(Users username) {
        this.username = username;
        privacy = true;
    }

    public Users getUsername() {
        return username;
    }

    public void setUser(Users username) {
        this.username = username;
    }

    public boolean getPrivacy() {
        return privacy;
    }

    public void setPrivacy(boolean privacy) {
        this.privacy = privacy;
    }
}
